package gao.xiaolei.entity;

import org.hibernate.annotations.Proxy;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "url_role")
public class UrlRole {

	@EmbeddedId
	private UrlRoleId id;

	
	public UrlRole() {
		super();
	}

	public UrlRole(String urlId, String roleId) {
		super();
		this.id = new UrlRoleId(urlId,roleId);
	}

	public UrlRoleId getId() {
		return id;
	}

	public void setId(String urlId, String roleId) {
		this.id.setRole_id(roleId);
		this.id.setUrl_id(urlId);
	}
}
